xenstored: log tdb message via xenstored's logging mechanisms
authorIan Campbell <ian.campbell@citrix.com>
Mon, 12 Jan 2015 15:18:02 +0000 (15:18 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 12 Jan 2015 16:02:43 +0000 (16:02 +0000)
commit16cc7dc7ae32c72f73f95d83fe36cdea366e398a
treebc51041ccd61b07b52d6fb1aaf6e2433b8422b79
parent03f15f8d602efd974d4c3507c7f780cd6efaec40
xenstored: log tdb message via xenstored's logging mechanisms

TDB provides us with a callback for this purpose. Use it in both
xenstored and xs_tdb_dump.

While at it make the existing log() macro tollerate memory failures.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xenstored_core.c
tools/xenstore/xs_tdb_dump.c